//
//  PKRadioPlayInfo.m
//  AMomentApp
//
//  Created by lanou on 15/10/6.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "PKRadioPlayInfo.h"

@implementation PKRadioPlayInfo

-(instancetype)init
{
    self = [super init];
    if (self) {
        _authorinfo = [[PKRadioAuthorInfo alloc]init];
        _shareinfo = [[PKRadioShareInfo alloc]init];
        _userinfo = [[PKRadioUserInfo alloc]init];
    }
    return self;
}

-(void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"authorinfo"]) {
        [self.authorinfo setValuesForKeysWithDictionary:value];
    }else if ([key isEqualToString:@"shareinfo"])
    {
        [self.shareinfo setValuesForKeysWithDictionary:value];
    }else if ([key isEqualToString:@"userinfo"])
    {
        [self.userinfo setValuesForKeysWithDictionary:value];
    }else
    {
        [super setValue:value forKey:key];
    }
}

@end
